package com.org.service.imp;

import com.org.dao.UserMapper;
import com.org.pojo.User;
import com.org.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserServiceImp implements UserService {
    @Autowired
    private UserMapper mapper;

    @Override
    public List<User> getUser() {
        return mapper.getUser();
    }

    @Override
    public boolean insertUser(User user) {
        return mapper.insertUser(user);
    }

    @Override
    public boolean updatePwd(int id,String pwd) {
        return mapper.updatePwd(id,pwd);
    }

    @Override
    public boolean deleteById(int id) {
        return mapper.deleteById(id);
    }
}
